home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q1082.dms / q1082.adf / src.lzh / Fig / xtra.h < prev    next >
Text File  |  1991-07-18  |  656b  |  27 lines

  1. /* 
  2.  *    FIG : Facility for Interactive Generation of figures
  3.  *
  4.  *    Copyright (c) 1985 by Supoj Sutanthavibul (supoj@sally.UTEXAS.EDU)
  5.  *    January 1985.
  6.  *    1st revision : Aug 1985.
  7.  *
  8.  *    %W%    %G%
  9. */
  10. #define    tool_destroy(tool)    XtDestroyWidget(tool)
  11.  
  12. PR_SIZE pf_textwidth();
  13.  
  14. #define    pw_text(w, x, y, op, font, string) \
  15.     XDrawString(tool_d, (w), gccache[(op)], (x), (y), \
  16.         (string), strlen(string))
  17.  
  18. #define    pw_put(w, x, y, op) \
  19.     XDrawPoint(tool_d, (w), gccache[(op) ? PAINT : ERASE], (x), (y))
  20.  
  21. #define    pw_vector(w, x1, y1, x2, y2, op, width) \
  22.     XDrawLine(tool_d, (w), gccache[(op)], (x1), (y1), (x2), (y2))
  23.  
  24. #define    pw_batch_on(w)
  25.  
  26. #define    pw_batch_off(w)
  27.